
package za.ac.cput.peterjohn.DesignPatternPrincipals.Structural.Decorator.Model;

import za.ac.cput.peterjohn.DesignPatternPrincipals.Structural.Decorator.Model.Animal;
import za.ac.cput.peterjohn.DesignPatternPrincipals.Structural.Decorator.Model.AnimalDecorater;

public class WingDecorater extends AnimalDecorater
{

    public WingDecorater(Animal animal){ super(animal); }

    @Override
    public String describe() { return animal.describe() + "I have wings." + fly(); }
    
    public String fly(){ return "I can fly.";}
}